package com.yunsc.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunsc.store.dto.QueryUserParamsDTO;
import com.yunsc.store.entity.YunscUserBalanceLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户余额变动明细表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:51
 */
@Mapper
public interface YunscUserBalanceLogDao extends BaseMapper<YunscUserBalanceLogEntity> {

    /**
     * 分页查询用户余额变动明细
     * @param objectPage
     * @param param
     * @param startTime
     * @param endTime
     * @param storeId
     * @return
     */
    Page<YunscUserBalanceLogEntity> selectBalanceLogPage(Page<Object> objectPage,
                                                         @Param("param") QueryUserParamsDTO param,
                                                         @Param("startTime") Long startTime,
                                                         @Param("endTime") Long endTime,
                                                         @Param("storeId") Integer storeId);
}
